using CurrencyConv.Core;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;

namespace CurrencyConv.Test
{
	[TestFixture]
	public class MoneyFixture
	{
		[Test]
		public void Currency_reports_Equals_correctly()
		{
			Money ron1 = new Money("RON", "currencyName", 25);
			Money ron2 = new Money("RON", "currencyNam23 1234 1234e", 25);

			Assert.That(ron1, Is.EqualTo(ron2));
		}

		[Test]
		public void Same_Currency_with_different_ammount_is_not_equal()
		{
			Money ron1 = new Money("RON", "currencyName", 15);
			Money ron2 = new Money("RON", "currencyNam23 1234 1234e", 25);

			Assert.That(ron1, Is.Not.EqualTo(ron2));
		}
	}
}